/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_channel_contents")
//@NamedQueries({@NamedQuery(name = "TChannelcontents.findAll", query = "SELECT t FROM TChannelcontents t"), @NamedQuery(name = "TChannelcontents.findByContentid", query = "SELECT t FROM TChannelcontents t WHERE t.contentid = :contentid"), @NamedQuery(name = "TChannelcontents.findByChannelId", query = "SELECT t FROM TChannelcontents t WHERE t.channelId = :channelId")})
public class TChannelcontents implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "contentid")
    private String contentid;
    @Basic(optional = false)
    @Column(name = "channel_id")
    private String channelId;

    public TChannelcontents() {
    }

    public TChannelcontents(String contentid) {
        this.contentid = contentid;
    }

    public TChannelcontents(String contentid, String channelId, String serviceCode, String contentName, String contentType, String contentStatus) {
        this.contentid = contentid;
        this.channelId = channelId;
    }

    public String getContentid() {
        return contentid;
    }

    public void setContentid(String contentid) {
        this.contentid = contentid;
    }


    /**
	 * channelId
	 *
	 * @return  the channelId
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getChannelId() {
		return channelId;
	}

	/**
	 * @param channelId the channelId to set
	 */
	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}

	@Override
    public int hashCode() {
        int hash = 0;
        hash += (contentid != null ? contentid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TChannelcontents)) {
            return false;
        }
        TChannelcontents other = (TChannelcontents) object;
        if ((this.contentid == null && other.contentid != null) || (this.contentid != null && !this.contentid.equals(other.contentid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TChannelcontents[contentid=" + contentid + "]";
    }

}
